package org.jl.demo.authority.model.po;

import lombok.Data;
import jakarta.persistence.*;

/**
 * 用户Po
 */
@Data
@Entity
@Table(name = "z_user", indexes = {
        @Index(name = "idx_user_code", columnList = "user_code"),
        @Index(name = "idx_user_name", columnList = "user_name")
})
public class User {
    /**
     * 用户ID
     */
    @Id
    @Column(name = "id", nullable = false, unique = true)
    private Integer id;
    /**
     * 用户编码
     */
    @Column(name = "user_code", nullable = false, length = 32)
    private String userCode;
    /**
     * 用户名称
     */
    @Column(name = "user_name", nullable = false, length = 32)
    private String userName;
}